<?php
/**
 * Author: Lee
 * Date: 2022/01/21
 */


namespace App\Http\Request\Upload;


use App\Common\Utils\BaseRequest;

class ExportProductsRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'activity_id' => 'required|integer|min:1',
            'type' => 'required',
            'activity_name' => 'required',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'activity_id.required' => '活动/项目编号不能为空',
            'activity_id.min' => '活动/项目编号必须大于1',
            'activity_id.integer' =>'活动/项目编号必须为数字',
            'type.required' => 'type不能为空',
            'activity_name.required' => '活动名称不能为空',
        ];

        return $messages;
    }
}
